package com.cecw.service.impl;

import com.cecw.dao.ProjectMapper;
import com.cecw.pojo.Project;
import com.cecw.service.ProjectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Service
public class ProjectServiceImpl implements ProjectService {
    @Resource
    private ProjectMapper projectMapper;

    @Override
    public List<Project> getList(LocalDate startTime, LocalDate endTime, String[] selectedProjectList) {
        List<Project> list = projectMapper.list(startTime,endTime,selectedProjectList);
        return list;
    }

    @Override
    public List<Project> getListWithTime(LocalDateTime startTime, LocalDateTime endTime) {
        return projectMapper.listWithTime(startTime, endTime);
    }
}
